package cn.wxq.daily.empdailymgforserve.model;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * 返回结果
 */
@ApiModel(description= "返回响应数据")
public class Result {
    @ApiModelProperty(value = "是否成功")
    private boolean flag;//是否成功
    @ApiModelProperty(value = "返回码")
    private Integer code;// 返回码
    @ApiModelProperty(value = "返回信息")
    private String message;//返回信息
    @ApiModelProperty(value = "返回数据")
    private Object data;// 返回数据

    public Result() {
    }

    public Result(boolean flag, Integer code, String message) {
        this.flag = flag;
        this.code = code;
        this.message = message;
    }

    public Result(boolean flag, Integer code, String message, Object data) {
        this.flag = flag;
        this.code = code;
        this.message = message;
        this.data = data;
    }

    public boolean isFlag() {
        return flag;
    }

    public void setFlag(boolean flag) {
        this.flag = flag;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }
}
